#ifndef _8259_H_

#define _8259_H_

int get_last_irq();
int restore_irq_pm();
int prepare_irq_rm();
int enable_irq(int irq_number);
int disable_irq(int irq_number);
int is_irq(int irq_number);
int irq_ended(int irq_number);
int irqs_enabled();
int llock();
int llockfree();
int init_8259();

enum {WRITE_PREPARE_IRQ_RM,WRITE_RESTORE_IRQ_PM,WRITE_ENABLE_IRQ,WRITE_DISABLE_IRQ,WRITE_LLOCK,WRITE_LLOCKFREE,WRITE_IRQ_ENDED};

enum {READ_IS_IRQ};


#endif
